package com.example.dw.dto;

import lombok.Data;

import jakarta.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Map;

/**
 * 答案对比DTO
 * @author system
 * @since 2024-01-01
 */
@Data
public class AnswerCompareDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 考试ID
     */
    @NotNull(message = "考试ID不能为空")
    private Integer examId;

    /**
     * 题目ID
     */
    @NotNull(message = "题目ID不能为空")
    private Integer questionId;

    /**
     * 用户答案
     */
    @NotNull(message = "用户答案不能为空")
    private String answer;

    /**
     * 所有用户答案（可选，用于批量对比）
     */
    private Map<Integer, String> answers;
} 